import {SET_OPENID, SET_DETAILACTIVITYS, SET_SHOWBIGGIFT, SET_SELECTADDRESSSTATUS, SET_BIGGIFT,SET_QRCODEID} from './../mutation_types'

const state = {
  openid:"i am openid",
  detailActivitys: '',
  showBigGift: 0,
  selectAddressStatus: 0,
  bigGifts: [],
  QRCodeId:"no"
}

const mutations = {
  [SET_OPENID] (state, openid) {
    state.openid = openid
  },
  [SET_DETAILACTIVITYS] (state, detailActivitys) {
    state.detailActivitys = detailActivitys
  },
  [SET_SHOWBIGGIFT] (state, showBigGift) {
    state.showBigGift = showBigGift
  },
  [SET_SELECTADDRESSSTATUS] (state, selectAddressStatus) {
    state.selectAddressStatus = selectAddressStatus
  },
  [SET_BIGGIFT] (state, bigGifts) {
    state.bigGifts = bigGifts
  },
  [SET_QRCODEID](state, QRCodeId){
    state.QRCodeId = QRCodeId
  }
}

export default {
  state,
  mutations
}
